package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Authority;
import org.springframework.dao.DataAccessException;

import java.util.Set;

public interface AuthorityDAO extends JpaDao<Authority> {

	public Authority findAuthorityById(Integer id) throws DataAccessException;

	public Authority findAuthorityById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Authority> findAuthorityByName(String name) throws DataAccessException;

	public Set<Authority> findAuthorityByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Authority> findAuthorityByNameContaining(String name_1) throws DataAccessException;

	public Set<Authority> findAuthorityByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Authority> findAuthorityByDescription(String description) throws DataAccessException;

	public Set<Authority> findAuthorityByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Authority> findAuthorityByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Authority> findAuthorityByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Authority findAuthorityByPrimaryKey(Integer id) throws DataAccessException;

	public Authority findAuthorityByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Authority> findAuthoritysByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Authority> findAllAuthoritys() throws DataAccessException;

	public Set<Authority> findAllAuthoritys(int startResult, int maxRows) throws DataAccessException;

	public Set<Authority> findAuthorityByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Authority> findAuthoritysByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Authority findAuthorityByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Authority findAuthorityByPhysicalPrimaryKey(String name, int startResult, int maxRows)
			throws DataAccessException;
}
